package com.ordprovider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.class1801.pojo.Provider;
import com.class1801.service.ProviderService;
import com.ordprovider.dao.ProviderDao;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Component
@Service(interfaceClass = ProviderService.class)
class ProviderServiceImpl implements ProviderService {
    @Resource
    private ProviderDao userDao ;

    @Override
    public List<Provider> getProviderList(){return userDao.getAllProviders() ; }

}

